package com.fengplus.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/gateway")
public class GatewayController {

    @GetMapping("/a/a")
    public String a() {
        return "Gateway A：http://127.0.0.1:8204/gateway/a/a";
    }

    @GetMapping("/b/b")
    public String b() {
        return "Gateway B：http://127.0.0.1:8204/prefix/gateway/b/b";
    }

    @GetMapping("/c/c")
    public String c() {
        return "Gateway C：http://127.0.0.1:8204/gateway/c/c";
    }

    @GetMapping("/d/d")
    public String d() {
        return "Gateway D：http://127.0.0.1:8204/gateway/d/d";
    }

}
